using Geometry;

namespace Cesium3DTilesSelection
{
    public class TileID
    {
        public string id;
        public QuadtreeTileID? quadtreeID;
        public UpsampledQuadtreeNode? upsampledQuadtreeID;

        public string ToString()
        {
            if (quadtreeID != null) return string.Format("L{0} X{1},Y{2}", quadtreeID.Value.level, quadtreeID.Value.x, quadtreeID.Value.y);
            if (quadtreeID != null) return string.Format("upsampled L{0} X{1},Y{2}",
            upsampledQuadtreeID.Value.tileID.level,
            upsampledQuadtreeID.Value.tileID.x,
            upsampledQuadtreeID.Value.tileID.y);
            return "";
        }
    }
}